
using System;
using System.Collections.Generic;

namespace Serpis
{
	internal static class PersisterInfoStore
	{
		private static Dictionary<Type, PersisterInfo> persisterInfos = new Dictionary<Type, PersisterInfo>();
		
		public static PersisterInfo Get(Type type)
		{
			if (!persisterInfos.ContainsKey(type)) {
				PersisterInfo persisterInfo = new PersisterInfo(type);
				persisterInfos.Add(type, persisterInfo);
				return persisterInfo;
			}
			return persisterInfos[type];
		}
	}
}
